package com.gl.order.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;

/**
 * @Author: liangSY
 * @Date: 2021/6/24
 * @ClassName: MenuAddDto
 * @Description: MenuAddDto描述
 */
@Data
@ApiModel("添加菜单-相关参数")
public class MenuAddDto {

    @ApiModelProperty("菜单id，修改的时候需要带上")
    private String id;

    @NotBlank(message = "菜单名称不能为空")
    @ApiModelProperty("菜单栏名称")
    private String name;

    @ApiModelProperty("菜单栏图标")
    private String icon;

    @ApiModelProperty("菜单栏的上级，默认为0")
    private String getParentId;

    @NotBlank(message = "请输入菜单路由")
    @ApiModelProperty("菜单路由")
    private String path;

    @ApiModelProperty("访问后端的链接")
    private String url;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("菜单类型")
    private Integer menuType;

    @ApiModelProperty("是否显示")
    private Boolean enable;

}
